#! /bin/sh

if [ $# -ne 1 ]; then
    echo "Usage: $0 <name of font to convert, without extension (ttf assumed, .xml will be created)>"
    exit 127
fi

FONT_NAME=$1
FOP_HOME="./fop-0.95"

java -classpath $FOP_HOME/build/fop.jar:$FOP_HOME/lib/serializer-2.7.0.jar:$FOP_HOME/lib/commons-logging-1.0.4.jar:$FOP_HOME/lib/commons-io-1.3.1.jar:$FOP_HOME/lib/xmlgraphics-commons-1.3.1.jar  org.apache.fop.fonts.apps.TTFReader $FONT_NAME.ttf $FONT_NAME.xml

